import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { TodoListModule } from './todo-list/todo-list.module';
import { MongooseModule } from '@nestjs/mongoose';

const dbConnectionModule = MongooseModule.forRoot("mongodb://172.24.0.1:27017/mydb")

@Module({
  imports: [TodoListModule, dbConnectionModule],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule { }
